From: Khalid Abu Shawarib Date: Wed, 30 Jul 2025 16:30:52 +0000 (+0300) Subject: barLevel: Remove redundant cairo fill calls X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~119^2~4^2^2~7 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=9301e3145b5d55f9dd269e168221bd442acee70f;p=gnome-shell.git barLevel: Remove redundant cairo fill calls Drop the redundant fillPreserve() calls where there already is a fill(). This is also caused by 6fd0aac86. Part-of: (cherry picked from commit 4d53fbf5bbf84fee0a5a6d0b8baf098559eaccc9) --- diff --git a/js/ui/barLevel.js b/js/ui/barLevel.js index 777cdefe7..a110c7199 100644 --- a/js/ui/barLevel.js +++ b/js/ui/barLevel.js @@ -156,7 +156,6 @@ export const BarLevel = GObject.registerClass({ cr.lineTo(endX, (height - this._barLevelHeight) / 2); cr.lineTo(xcArcEnd, (height - this._barLevelHeight) / 2); cr.setSourceColor(this._barLevelColor); - cr.fillPreserve(); cr.fill(); /* normal progress bar */ @@ -173,7 +172,6 @@ export const BarLevel = GObject.registerClass({ cr.lineTo(xcArcStart, (height + this._barLevelHeight) / 2); if (this._value > 0) cr.setSourceColor(this._barLevelActiveColor); - cr.fillPreserve(); cr.fill(); /* overdrive progress barLevel */ @@ -188,7 +186,6 @@ export const BarLevel = GObject.registerClass({ cr.lineTo(x, (height + this._barLevelHeight) / 2); cr.lineTo(x, (height - this._barLevelHeight) / 2); cr.setSourceColor(this._barLevelOverdriveColor); - cr.fillPreserve(); cr.fill(); }